package com.example.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;



/**
 * 更新图书副本DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookCopyUpdateDTO {

    /**
     * 图书副本ID
     */
    @NotNull(message = "图书副本ID不能为空")
    private Long id;

    /**
     * 状态 (0在馆, 1借出, 2丢失, 3维修)
     */
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态值不能小于0")
    @Max(value = 3, message = "状态值不能大于3")
    private Integer status;

}